/**
 * Copyright 2013 yangming.liu<liuyangming@gmail.com>.
 *
 * This copyrighted material is made available to anyone wishing to use, modify,
 * copy, or redistribute it subject to the terms and conditions of the GNU
 * Lesser General Public License, as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
 * or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License
 * for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this distribution; if not, see <http://www.gnu.org/licenses/>.
 */
package org.bytesoft.openjta.coordinate;

import java.util.List;

import org.bytesoft.openjta.TransactionContext;
import org.bytesoft.openjta.TransactionStatus;
import org.bytesoft.openjta.archive.TerminatorArchive;
import org.bytesoft.openjta.archive.TransactionArchive;
import org.bytesoft.openjta.resource.LocalTerminator;
import org.bytesoft.openjta.supports.TransactionLogger;

public final class TransactionCoordinateContext {
	private TransactionLogger transactionLogger;
	private TransactionStatus transactionStatus;
	private TransactionContext transactionContext;

	private List<TerminatorArchive> terminatorArchives;
	private TerminatorArchive lastTerminatorArchive;
	private LocalTerminator localTerminator;

	private TransactionArchive transactionArchive;

	public TransactionLogger getTransactionLogger() {
		return transactionLogger;
	}

	public void setTransactionLogger(TransactionLogger transactionLogger) {
		this.transactionLogger = transactionLogger;
	}

	public TransactionStatus getTransactionStatus() {
		return transactionStatus;
	}

	public void setTransactionStatus(TransactionStatus transactionStatus) {
		this.transactionStatus = transactionStatus;
	}

	public TransactionContext getTransactionContext() {
		return transactionContext;
	}

	public void setTransactionContext(TransactionContext transactionContext) {
		this.transactionContext = transactionContext;
	}

	public List<TerminatorArchive> getTerminatorArchives() {
		return terminatorArchives;
	}

	public void setTerminatorArchives(List<TerminatorArchive> terminatorArchives) {
		this.terminatorArchives = terminatorArchives;
	}

	public TerminatorArchive getLastTerminatorArchive() {
		return lastTerminatorArchive;
	}

	public void setLastTerminatorArchive(TerminatorArchive lastTerminatorArchive) {
		this.lastTerminatorArchive = lastTerminatorArchive;
	}

	public LocalTerminator getLocalTerminator() {
		return localTerminator;
	}

	public void setLocalTerminator(LocalTerminator localTerminator) {
		this.localTerminator = localTerminator;
	}

	public TransactionArchive getTransactionArchive() {
		return transactionArchive;
	}

	public void setTransactionArchive(TransactionArchive transactionArchive) {
		this.transactionArchive = transactionArchive;
	}

}
